package fr.norsys.mapper.console.model;

import fr.norsys.mapper.console.utils.UIDGenerator;

public class IdentifiantComponent extends BaseObject {

	private static final long serialVersionUID = 3505055252875068456L;
	private String id;
	private String name = "cn";
	private String value;
	private boolean idVariable;
	
	public IdentifiantComponent() {
		super();
		this.id = "";
	}

	public IdentifiantComponent(String name, String value, boolean idVariable){
		super();
		this.id = UIDGenerator.generateId();
		this.name = name;
		this.value = value;
		this.idVariable = idVariable;
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getValue(){
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isIdVariable() {
		return idVariable;
	}

	public void setIdVariable(boolean idVariable) {
		this.idVariable = idVariable;
	}
	
}
